import { literatureListPage } from '@/api/common_other'
import {ref} from 'vue'

export const literature = ()=>{
  const literatureArr = ref([])
  // 文献列表
  const getLiteratureListPage = (orgId=1)=>{
    literatureListPage({
      pageNum:1,
      pageSize:8,
      orgId
    }).then(res=>{ 
      let { code, data, msg } = res
      if(code == '200'){
        literatureArr.value = data.rows
      }else{
        ElMessage.warning(msg);
      }
      
    })
  }
  return { literatureArr, getLiteratureListPage }
}